#
# (C) Copyright 2019
# <tang-haifeng@foxmail.com> <pengren.mcu@qq.com>
#
# SPDX-License-Identifier:      GPL-2.0+
#

ifndef CONFIG_SPL_BUILD
obj-y += loongson_update.o
obj-$(CONFIG_LOONGSON_BOOT_FIXUP) += loongson_smbios.o
obj-$(CONFIG_RECOVER) += recover.o

ifeq ($(CONFIG_MENU), y)
obj-y += loongson_update_menu.o
ifneq ($(findstring $(CONFIG_DM_VIDEO)$(CONFIG_VIDEO), y y),)
obj-y += resolution_menu.o rotation_menu.o
endif
endif

endif #CONFIG_SPL_BUILD

ifdef CONFIG_SPL_BUILD
obj-y += spl.o
endif
